/**
 * createUser:JAVA_TOM
 * FileName: UserController
 * Author:   14562
 * Date:     2019/1/14 18:36
 * Description:
 */
package com.javatom.zwl.stream_redis.ctroller;

import com.javatom.zwl.stream_redis.redis.redisServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    redisServer redisServer;

    @RequestMapping("/s")
    public String push() {
        redisServer.set("a","bb");
        return "ok";
    }
    @RequestMapping("/t")
    public String t() {
        ;
        return (String) redisServer.get("a");
    }
}
